﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000AA9 RID: 2729
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class LogisticsScore : IMessage<LogisticsScore>, IMessage, IEquatable<LogisticsScore>, IDeepCloneable<LogisticsScore>, IBufferMessage
	{
		// Token: 0x17002263 RID: 8803
		// (get) Token: 0x060079FD RID: 31229 RVA: 0x0014543F File Offset: 0x0014363F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<LogisticsScore> Parser
		{
			get
			{
				return LogisticsScore._parser;
			}
		}

		// Token: 0x17002264 RID: 8804
		// (get) Token: 0x060079FE RID: 31230 RVA: 0x00145446 File Offset: 0x00143646
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return LogisticsScoreReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002265 RID: 8805
		// (get) Token: 0x060079FF RID: 31231 RVA: 0x00145458 File Offset: 0x00143658
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return LogisticsScore.Descriptor;
			}
		}

		// Token: 0x06007A00 RID: 31232 RVA: 0x0014545F File Offset: 0x0014365F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LogisticsScore()
		{
		}

		// Token: 0x06007A01 RID: 31233 RVA: 0x00145468 File Offset: 0x00143668
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LogisticsScore(LogisticsScore other) : this()
		{
			this.lastMaxScore_ = other.lastMaxScore_;
			this.maxScore_ = other.maxScore_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.mapId_ = other.mapId_;
			this.unlockLevel_ = other.unlockLevel_;
			this.lastLevel_ = other.lastLevel_;
			this.curScore_ = other.curScore_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06007A02 RID: 31234 RVA: 0x001454F0 File Offset: 0x001436F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LogisticsScore Clone()
		{
			return new LogisticsScore(this);
		}

		// Token: 0x17002266 RID: 8806
		// (get) Token: 0x06007A03 RID: 31235 RVA: 0x001454F8 File Offset: 0x001436F8
		// (set) Token: 0x06007A04 RID: 31236 RVA: 0x00145500 File Offset: 0x00143700
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LastMaxScore
		{
			get
			{
				return this.lastMaxScore_;
			}
			set
			{
				this.lastMaxScore_ = value;
			}
		}

		// Token: 0x17002267 RID: 8807
		// (get) Token: 0x06007A05 RID: 31237 RVA: 0x00145509 File Offset: 0x00143709
		// (set) Token: 0x06007A06 RID: 31238 RVA: 0x00145511 File Offset: 0x00143711
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MaxScore
		{
			get
			{
				return this.maxScore_;
			}
			set
			{
				this.maxScore_ = value;
			}
		}

		// Token: 0x17002268 RID: 8808
		// (get) Token: 0x06007A07 RID: 31239 RVA: 0x0014551A File Offset: 0x0014371A
		// (set) Token: 0x06007A08 RID: 31240 RVA: 0x00145522 File Offset: 0x00143722
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17002269 RID: 8809
		// (get) Token: 0x06007A09 RID: 31241 RVA: 0x0014552B File Offset: 0x0014372B
		// (set) Token: 0x06007A0A RID: 31242 RVA: 0x00145533 File Offset: 0x00143733
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint MapId
		{
			get
			{
				return this.mapId_;
			}
			set
			{
				this.mapId_ = value;
			}
		}

		// Token: 0x1700226A RID: 8810
		// (get) Token: 0x06007A0B RID: 31243 RVA: 0x0014553C File Offset: 0x0014373C
		// (set) Token: 0x06007A0C RID: 31244 RVA: 0x00145544 File Offset: 0x00143744
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UnlockLevel
		{
			get
			{
				return this.unlockLevel_;
			}
			set
			{
				this.unlockLevel_ = value;
			}
		}

		// Token: 0x1700226B RID: 8811
		// (get) Token: 0x06007A0D RID: 31245 RVA: 0x0014554D File Offset: 0x0014374D
		// (set) Token: 0x06007A0E RID: 31246 RVA: 0x00145555 File Offset: 0x00143755
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LastLevel
		{
			get
			{
				return this.lastLevel_;
			}
			set
			{
				this.lastLevel_ = value;
			}
		}

		// Token: 0x1700226C RID: 8812
		// (get) Token: 0x06007A0F RID: 31247 RVA: 0x0014555E File Offset: 0x0014375E
		// (set) Token: 0x06007A10 RID: 31248 RVA: 0x00145566 File Offset: 0x00143766
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint CurScore
		{
			get
			{
				return this.curScore_;
			}
			set
			{
				this.curScore_ = value;
			}
		}

		// Token: 0x06007A11 RID: 31249 RVA: 0x0014556F File Offset: 0x0014376F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as LogisticsScore);
		}

		// Token: 0x06007A12 RID: 31250 RVA: 0x00145580 File Offset: 0x00143780
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(LogisticsScore other)
		{
			return other != null && (other == this || (this.LastMaxScore == other.LastMaxScore && this.MaxScore == other.MaxScore && object.Equals(this.Reward, other.Reward) && this.MapId == other.MapId && this.UnlockLevel == other.UnlockLevel && this.LastLevel == other.LastLevel && this.CurScore == other.CurScore && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06007A13 RID: 31251 RVA: 0x00145620 File Offset: 0x00143820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LastMaxScore != 0U)
			{
				num ^= this.LastMaxScore.GetHashCode();
			}
			if (this.MaxScore != 0U)
			{
				num ^= this.MaxScore.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.MapId != 0U)
			{
				num ^= this.MapId.GetHashCode();
			}
			if (this.UnlockLevel != 0U)
			{
				num ^= this.UnlockLevel.GetHashCode();
			}
			if (this.LastLevel != 0U)
			{
				num ^= this.LastLevel.GetHashCode();
			}
			if (this.CurScore != 0U)
			{
				num ^= this.CurScore.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06007A14 RID: 31252 RVA: 0x001456F2 File Offset: 0x001438F2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06007A15 RID: 31253 RVA: 0x001456FA File Offset: 0x001438FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06007A16 RID: 31254 RVA: 0x00145704 File Offset: 0x00143904
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LastLevel != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.LastLevel);
			}
			if (this.MaxScore != 0U)
			{
				output.WriteRawTag(24);
				output.WriteUInt32(this.MaxScore);
			}
			if (this.LastMaxScore != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.LastMaxScore);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.Reward);
			}
			if (this.UnlockLevel != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.UnlockLevel);
			}
			if (this.MapId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.MapId);
			}
			if (this.CurScore != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.CurScore);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06007A17 RID: 31255 RVA: 0x001457EC File Offset: 0x001439EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LastMaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LastMaxScore);
			}
			if (this.MaxScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MaxScore);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.MapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.MapId);
			}
			if (this.UnlockLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UnlockLevel);
			}
			if (this.LastLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LastLevel);
			}
			if (this.CurScore != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.CurScore);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06007A18 RID: 31256 RVA: 0x001458BC File Offset: 0x00143ABC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(LogisticsScore other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LastMaxScore != 0U)
			{
				this.LastMaxScore = other.LastMaxScore;
			}
			if (other.MaxScore != 0U)
			{
				this.MaxScore = other.MaxScore;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.MapId != 0U)
			{
				this.MapId = other.MapId;
			}
			if (other.UnlockLevel != 0U)
			{
				this.UnlockLevel = other.UnlockLevel;
			}
			if (other.LastLevel != 0U)
			{
				this.LastLevel = other.LastLevel;
			}
			if (other.CurScore != 0U)
			{
				this.CurScore = other.CurScore;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06007A19 RID: 31257 RVA: 0x00145988 File Offset: 0x00143B88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06007A1A RID: 31258 RVA: 0x00145994 File Offset: 0x00143B94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 48U)
				{
					if (num == 16U)
					{
						this.LastLevel = input.ReadUInt32();
						continue;
					}
					if (num == 24U)
					{
						this.MaxScore = input.ReadUInt32();
						continue;
					}
					if (num == 48U)
					{
						this.LastMaxScore = input.ReadUInt32();
						continue;
					}
				}
				else if (num <= 72U)
				{
					if (num == 58U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 72U)
					{
						this.UnlockLevel = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.MapId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.CurScore = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04002E9F RID: 11935
		private static readonly MessageParser<LogisticsScore> _parser = new MessageParser<LogisticsScore>(() => new LogisticsScore());

		// Token: 0x04002EA0 RID: 11936
		private UnknownFieldSet _unknownFields;

		// Token: 0x04002EA1 RID: 11937
		public const int LastMaxScoreFieldNumber = 6;

		// Token: 0x04002EA2 RID: 11938
		private uint lastMaxScore_;

		// Token: 0x04002EA3 RID: 11939
		public const int MaxScoreFieldNumber = 3;

		// Token: 0x04002EA4 RID: 11940
		private uint maxScore_;

		// Token: 0x04002EA5 RID: 11941
		public const int RewardFieldNumber = 7;

		// Token: 0x04002EA6 RID: 11942
		private ItemList reward_;

		// Token: 0x04002EA7 RID: 11943
		public const int MapIdFieldNumber = 13;

		// Token: 0x04002EA8 RID: 11944
		private uint mapId_;

		// Token: 0x04002EA9 RID: 11945
		public const int UnlockLevelFieldNumber = 9;

		// Token: 0x04002EAA RID: 11946
		private uint unlockLevel_;

		// Token: 0x04002EAB RID: 11947
		public const int LastLevelFieldNumber = 2;

		// Token: 0x04002EAC RID: 11948
		private uint lastLevel_;

		// Token: 0x04002EAD RID: 11949
		public const int CurScoreFieldNumber = 14;

		// Token: 0x04002EAE RID: 11950
		private uint curScore_;
	}
}
